function P=s_straight(G,P,k)
% s_straight: An example subroutine to step a player with the so-called "straignt motion"
%
% SYNTAX:
%   P= s_straight(G,P,k)
%   Return the player object with updated position (P.pos) and states (P.Vars).
%   The player's angle (P.ang) is not updated.

%   Author: Hongbin Ma
%   Last updated: 2009-6-2 with MATLAB 6.5
%   Problems or suggestions? Email me: mathmhb[at]163.com

P.pos=P.pos+def_delta_pos_func(G,P,k);
P=feval(P.calc_Vars_func,G,P,k);
